package com.scs.application.core.msg.domain;

import com.scs.application.core.msg.enums.MessageType;
import lombok.Data;
import lombok.experimental.Accessors;

import java.util.Map;

/**
 * @Description: 邮件消息
 */
@Data
@Accessors(chain = true)
public class EmailMessage implements RawMessage {


    private String title;

    private String content;


    /**
     * 接收人
     */
    private String to;

    /**
     * 抄送人
     */
    private String cc;


    /**
     * 消息模板中可能用到的参数值
     */
    private Map<String, Object> params;

    @Override
    public MessageType getMessageType() {
        return MessageType.EMAIL;
    }
}
